# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=uglifycss
pkgver=0.0.29
pkgrel=2
pkgdesc="Port of YUI CSS Compressor from Java to NodeJS"
url="https://github.com/fmarcia/UglifyCSS"
arch="noarch"
license="MIT"
depends="nodejs"
makedepends="npm"
source="https://registry.npmjs.org/uglifycss/-/uglifycss-$pkgver.tgz"
options="!check"
builddir="$srcdir/package"

unpack() {
	# skipping unpacking, installing archive directly
	verify
}

package() {
	npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/uglifycss-$pkgver.tgz"
	find "$pkgdir/usr/lib/node_modules/root" -delete
	chown -R root: "$pkgdir"
}

sha512sums="
276490d902e38a49cd19b35d49c68d66c5e098c188d2460dad768396be286e73d6f678b58e58dbd4d7845560224e067ccfe10158fda8cdf4fdbe9cb4deb8e531  uglifycss-0.0.29.tgz
"
